<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<html>
<head>
    <title>课程表信息</title>
    <link rel="stylesheet" href="${ssy}/resources/layui/css/layui.css">
    <script type="text/javascript" src="${ssy}/resources/layui/layui.js"></script>
</head>
<body>
<table id="studentInfo" lay-filter="studentInfoFilter"></table>

<script>
    layui.use(['table'],function(){
        var table = layui.table;

        table.render({
            id:'studentInfoId',
            elem:'#studentInfo',
            url:'${ssy}/student.do?type=curriculumInfo',
            page:false,
            cols:[[
                {field:'workId', title: '排课号',align:"center"},
                {field:'number', title: '课程号',align:"center"},
                {field:'courseName',title:'课程名称',align:"center"},
                {field:'teacher',title:'授课教师',align:"center"},
                {field:'classHours',title:'学时',align:"center"},
                {field:'credit',title:'学分',align:"center"},
                {field:'startTime',title:'授课时间',align:"center"},
                {field:'address',title:'授课地点',align:"center"},
            ]],
            parseData:function(res){ //res 即为原始返回的数据
                return {
                    "code": res.code, //解析接口状态
                    "msg": res.msg, //解析提示文本
                    "count": res.data.count, //解析数据长度
                    "data": res.data.list //解析数据列表
                };
            },
            response:{
                statusCode: 200
            }
        });

    })

</script>

</body>
</html>

